//
//  UIView+Trait.h
//  demo
//
//  Created by Jarvis on 2024/5/31.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Trait)

- (void)observeTraitChanges:(void(^)(UIUserInterfaceStyle style))traitChangesBlock API_AVAILABLE(ios(12.0));
- (void)removeTraitObserver;

@end


@interface UIViewController (Trait)

- (void)observeTraitChanges:(void(^)(UIUserInterfaceStyle style))traitChangesBlock API_AVAILABLE(ios(12.0));
- (void)removeTraitObserver;

@end

NS_ASSUME_NONNULL_END
